package com.itheima.Demo01.demo01;

import java.io.IOException;
import java.io.InputStream;
import java.util.Properties;

public class getResourceAsStream {
    public static void main(String[] args) throws IOException {
        ClassLoader loader = ClassLoader.getSystemClassLoader();
        InputStream is = loader.getResourceAsStream("com\\day.properties");
        Properties prop = new Properties();
        prop.load(is);
        System.out.println(prop);
        is.close();

    }
}
